import Vue from 'vue'
import Router from 'vue-router'
const Login=()=>import('../components/login.vue');
const userInfor=()=>import('../components/userInformation.vue');
const setpassword=()=>import('../components/setpassword.vue');
const home=()=>import('../components/home.vue');
const myself=()=>import('../components/myself.vue');
const search=()=>import('../components/search.vue');
const shop=()=>import('../components/shop.vue');
const address=()=>import('../components/address.vue');
const buyAddress=()=>import('../components/buyAddress.vue');
const account=()=>import('../components/account.vue');
const addressMessage=()=>import('../components/addressMessage.vue');
const redBag=()=>import('../components/redBag.vue');
const accountRedBag=()=>import('../components/accountRedBag.vue');
const historyRedBag=()=>import('../components/historyRedBag.vue');
const seckill=()=>import('../components/seckill.vue');
const mysteryBox=()=>import('../components/mysteryBox.vue');
const orderMessage=()=>import('../components/orderMessage.vue');
const order=()=>import('../components/order.vue');
const evaluation=()=>import('../components/evaluation.vue');
const shopEvaluation=()=>import('../components/shopEvaluation.vue');
Vue.use(Router)

export default new Router({
    base: process.env.BASE_URL,
    routes:[
      {path:'/',redirect:'/home'},
      {path:'/evaluation',component:evaluation,name:'evaluation'},
      {path:'/shopEvaluation',component:shopEvaluation},
      {path:'/order',component:order},
      {path:'/orderMessage',component:orderMessage,name:'orderMessage'},
      {path:'/address',component:address},
      {path:'/buyAddress',component:buyAddress,name:'buyAddress'},
      {path:'/redBag',component:redBag},
      {path:'/mysteryBox',component:mysteryBox},
      {path:'/accountRedBag',component:accountRedBag},
      {path:'/historyRedBag',component:historyRedBag},
      {path:'/secKill',component:seckill},
      {path:'/account',component:account,name:'account'},
      {path:'/addressMessage',component:addressMessage},
      {path:'/shop',component:shop,name:'shop'},
      {path:'/home',component:home},
      {path:'/search',component:search},
      {path: '/Login',component: Login},
      {path:'/myself',component:myself},
      {path: '/userInformation',component: userInfor,name:userInfor},
      {path:'/setpassword',component:setpassword},
    ]
  })
  